﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/MasterPage.Master" AutoEventWireup="true" CodeBehind="AddArticles.aspx.cs" Inherits="DrivingCRM.Views.Private.CMS.AddArticles" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="banniere" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="nav" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="contenu" runat="server">
    <h1>Ajouter un article</h1>
    <br />
    <table style="width:100%;margin-bottom:20px;">     
        <tr>
            <td style="width:150px;text-align:center;">Titre de l'article : </td>
            <td><asp:TextBox ID="TB_Title" runat="server" style="margin-left: 0px" Width="80%" />
                <asp:RequiredFieldValidator ID="TitleRequired" runat="server" 
                                ControlToValidate="TB_Title" ErrorMessage="Le titre est requis." 
                                ToolTip="Le titre est requis." ValidationGroup="AddNewArticle">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width:150px;text-align:center;">Catégorie:</td>
            <td>
                <asp:DropDownList ID="DDL_Category" runat="server">
                    <asp:ListItem Text="Univers Auto" Value="Univers Auto" />
                    <asp:ListItem Text="Univers Moto" Value="Univers Moto" />
                    <asp:ListItem Text="Code de la route" Value="Code de la route" />
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="padding:0 5% 0 5%;">
                <telerik:RadEditor ID="RE_Content" runat="server" Width="100%" EnableResize="false" CssClass="RadEditor">
                    <Tools>
                        <telerik:EditorToolGroup Tag="Formatting">
                            <telerik:EditorTool Name="Bold" />
                            <telerik:EditorTool Name="Italic" />
                            <telerik:EditorTool Name="Underline" />
                            <telerik:EditorSeparator />
                            <telerik:EditorSplitButton Name="ForeColor">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSplitButton Name="BackColor">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSeparator />
                            <telerik:EditorDropDown Name="FontName">
                            </telerik:EditorDropDown>
                            <telerik:EditorDropDown Name="FontSize">
                            </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <Content>
                    </Content>
                </telerik:RadEditor>
                <asp:RequiredFieldValidator ID="ContentRequired" runat="server" 
                    ControlToValidate="RE_Content" ErrorMessage="Le contenu est requis." 
                    ToolTip="Le contenu est requis." ValidationGroup="AddNewArticle">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width:150px;margin-top:20px;margin-bottom:20px;text-align:center;"><asp:Button ID="Insert_button" runat="server" Text="Ajouter l'article" onclick="Insert_button_Click" /></td>
            <td style="margin-top:20px;margin-bottom:20px;"></td>
        </tr>
        <tr>
            <td colspan="2" style="margin-top:20px;margin-bottom:20px;"><asp:Label ID="L_ErrorMessage"  runat="server" /></td>
        </tr>    
    
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="footer" runat="server">
    Copyright DrivingCRM - 2011
</asp:Content>
